{% extends "../base.html"%} {% block header_title %}后台管理首页{% end %} {% block static_css %}
<link rel="stylesheet" href="{{ static_url('auth/css/signin.css') }}" />{% end%} {% block body %}
<div class="container" id="login">
    <div class="row">
        <div class="auth-box">
            <h2 class="text-center">登录</h2>
            {%if results.get('error')%}
            <div class="alert alert-danger" role="alert">{{results['error']}}</div>
            {%end%}
            <form action="/auth/signin" method="POST">
                {% raw xsrf_form_html() %}
                <div class="seperator"><span></span></div>
                <div class="form-group control-group">
                    <div class="controls">
                        <input class="form-control" id="username" name="username" placeholder="用户名或邮箱" type="text" value="">
                    </div>
                </div>
                <div class="form-group control-group">
                    <div class="controls">
                        <input autocomplete="off" class="form-control" id="password" name="password" placeholder="密码" type="password" value="">
                    </div>
                </div>
                <div class="checkbox">
                    <label>
                        <input type="checkbox" name="remember"> 记住一个月
                    </label>
                </div>
                <div class="form-group">
                    <button type="submit" class="btn btn-large btn-success" name="login">登陆</button>
                </div>
                <div class="form-group">
                    <a href="/#">忘记密码</a>
                    <a href="/auth/signup">账号注册</a>
                    <a href="/">返回首页</a>
                </div>
            </form>
        </div>
    </div>
</div>
{% end %}
